package com.zb.common.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zb.common.po.enums.RoleStatus;
import com.zb.common.po.model.Role;
import com.zb.common.po.query.RoleQuery;

public interface RoleMapper {

    public void insertRole(Role role);

    public List<Role> selectRoles(@Param("query") RoleQuery query);

    public int selectRoleCount(@Param("query") RoleQuery query);

    public void updateRoleSelective(Role role);

    public List<Role> selectRolesByRoleIds(List<String> ids);

    public void updateRoleStatusByIds(@Param("status") RoleStatus status,
            @Param("list") List<String> ids);
}
